.text-container { width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px; border: 1px solid #ccc; }